<template>
  <!-- 滚动条容器 -->
  <el-scrollbar height="400px">
    <!-- 表格 -->
    <el-table :data="scoreData" style="width: 100%">
      <el-table-column prop="year" label="年份" width="100" />
      <el-table-column prop="line1" label="一本线" width="100" />
      <el-table-column prop="line2" label="本科线" width="100" />
      <el-table-column prop="line3" label="专科线" width="100" />
    </el-table>
  </el-scrollbar>
</template>

<script lang="ts" setup>
// 模拟的分数线数据
const scoreData = [
  { year: '2021', line1: 500, line2: 450, line3: 200 },
  { year: '2022', line1: 510, line2: 460, line3: 210 },
  { year: '2023', line1: 520, line2: 470, line3: 220 },
  { year: '2024', line1: 530, line2: 480, line3: 230 },
];
</script>

<style scoped>
</style>
